<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style type="text/css">
        #box,#text{
            width:700px;
            height: 250px;
            background-color: skyblue;
            position: absolute;
            top:50%;
            left: 50%;
            transform: translate(-50%,-50%);
            text-align: center;
            line-height: 250px;
            font-size: 50px;

        }
        table {
            border-collapse: collapse;
            margin: 0 auto;
        }
        td {
            border: 1px solid black;
            padding: 5px;
            text-align: center;
        }
    </style>
</head>
<body>
    <div id="box"></div>
    <table>
        <script>
            for (var i = 1; i <= 9; i++) {
                document.write("<tr>");
                for (var j = 1; j <= i; j++) {
                    document.write("<td>" + i + " * " + j + " = " + (i * j) + "</td>");
                }
                document.write("</tr>");
            }
        </script>
    </table>
</body>
<script>
    var box=document.getElementById('box')
    function getTime(){
        var time=new Date()
        var year=time.getFullYear()
        var month=time.getMonth()+1
        var day=time.getDate()
        var hour=time.getHours()>=10?time.getHours():'0'+time.getHours()
        var minute=time.getMinutes()>=10?time.getMinutes():'0'+time.getMinutes()
        var second=time.getSeconds()>=10?time.getSeconds():'0'+time.getSeconds()
        box.innerText=year +'年'+month+'月'+day+'日'+hour+':'+minute+':'+second}
        setInterval(getTime,1000)
    
</script>

</html>